﻿using System;
using DataControl.Entities;

namespace DataControl
{
	public class Document_Envelope : IDocumentEnvelope
	{
		public virtual int EnvelopeId { get; set; }
		public virtual string DocXML { get; set; }
		public virtual string Signature { get; set; }
		public virtual int DocumentTypeFK { get; set; }
		public virtual int StatusFK { get; set; }
		public virtual int SenderFK { get; set; }
		public virtual string RejectionReason { get; set; }
		public virtual DateTime SentDate { get; set; }

		public override string ToString()
		{
			return string.Format("{0} - {1}", EnvelopeId, DocXML);
		}

		public virtual int ID
		{
			get { return EnvelopeId; }
			set { EnvelopeId = value; }
		}
	}
}
